﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012E5 RID: 4837
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncRogueAeonLevelUpRewardScNotify : IMessage<SyncRogueAeonLevelUpRewardScNotify>, IMessage, IEquatable<SyncRogueAeonLevelUpRewardScNotify>, IDeepCloneable<SyncRogueAeonLevelUpRewardScNotify>, IBufferMessage
	{
		// Token: 0x17003D17 RID: 15639
		// (get) Token: 0x0600D897 RID: 55447 RVA: 0x00244D43 File Offset: 0x00242F43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncRogueAeonLevelUpRewardScNotify> Parser
		{
			get
			{
				return SyncRogueAeonLevelUpRewardScNotify._parser;
			}
		}

		// Token: 0x17003D18 RID: 15640
		// (get) Token: 0x0600D898 RID: 55448 RVA: 0x00244D4A File Offset: 0x00242F4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncRogueAeonLevelUpRewardScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D19 RID: 15641
		// (get) Token: 0x0600D899 RID: 55449 RVA: 0x00244D5C File Offset: 0x00242F5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncRogueAeonLevelUpRewardScNotify.Descriptor;
			}
		}

		// Token: 0x0600D89A RID: 55450 RVA: 0x00244D63 File Offset: 0x00242F63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueAeonLevelUpRewardScNotify()
		{
		}

		// Token: 0x0600D89B RID: 55451 RVA: 0x00244D6C File Offset: 0x00242F6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueAeonLevelUpRewardScNotify(SyncRogueAeonLevelUpRewardScNotify other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.level_ = other.level_;
			this.aeonId_ = other.aeonId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D89C RID: 55452 RVA: 0x00244DC4 File Offset: 0x00242FC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueAeonLevelUpRewardScNotify Clone()
		{
			return new SyncRogueAeonLevelUpRewardScNotify(this);
		}

		// Token: 0x17003D1A RID: 15642
		// (get) Token: 0x0600D89D RID: 55453 RVA: 0x00244DCC File Offset: 0x00242FCC
		// (set) Token: 0x0600D89E RID: 55454 RVA: 0x00244DD4 File Offset: 0x00242FD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003D1B RID: 15643
		// (get) Token: 0x0600D89F RID: 55455 RVA: 0x00244DDD File Offset: 0x00242FDD
		// (set) Token: 0x0600D8A0 RID: 55456 RVA: 0x00244DE5 File Offset: 0x00242FE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17003D1C RID: 15644
		// (get) Token: 0x0600D8A1 RID: 55457 RVA: 0x00244DEE File Offset: 0x00242FEE
		// (set) Token: 0x0600D8A2 RID: 55458 RVA: 0x00244DF6 File Offset: 0x00242FF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AeonId
		{
			get
			{
				return this.aeonId_;
			}
			set
			{
				this.aeonId_ = value;
			}
		}

		// Token: 0x0600D8A3 RID: 55459 RVA: 0x00244DFF File Offset: 0x00242FFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncRogueAeonLevelUpRewardScNotify);
		}

		// Token: 0x0600D8A4 RID: 55460 RVA: 0x00244E10 File Offset: 0x00243010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncRogueAeonLevelUpRewardScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Level == other.Level && this.AeonId == other.AeonId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D8A5 RID: 55461 RVA: 0x00244E70 File Offset: 0x00243070
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.AeonId != 0U)
			{
				num ^= this.AeonId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D8A6 RID: 55462 RVA: 0x00244EDE File Offset: 0x002430DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D8A7 RID: 55463 RVA: 0x00244EE6 File Offset: 0x002430E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D8A8 RID: 55464 RVA: 0x00244EF0 File Offset: 0x002430F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.Reward);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Level);
			}
			if (this.AeonId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.AeonId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D8A9 RID: 55465 RVA: 0x00244F68 File Offset: 0x00243168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.AeonId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AeonId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D8AA RID: 55466 RVA: 0x00244FD8 File Offset: 0x002431D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncRogueAeonLevelUpRewardScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.AeonId != 0U)
			{
				this.AeonId = other.AeonId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D8AB RID: 55467 RVA: 0x00245054 File Offset: 0x00243254
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D8AC RID: 55468 RVA: 0x00245060 File Offset: 0x00243260
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 40U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.AeonId = input.ReadUInt32();
						}
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					if (this.reward_ == null)
					{
						this.Reward = new ItemList();
					}
					input.ReadMessage(this.Reward);
				}
			}
		}

		// Token: 0x0400563F RID: 22079
		private static readonly MessageParser<SyncRogueAeonLevelUpRewardScNotify> _parser = new MessageParser<SyncRogueAeonLevelUpRewardScNotify>(() => new SyncRogueAeonLevelUpRewardScNotify());

		// Token: 0x04005640 RID: 22080
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005641 RID: 22081
		public const int RewardFieldNumber = 3;

		// Token: 0x04005642 RID: 22082
		private ItemList reward_;

		// Token: 0x04005643 RID: 22083
		public const int LevelFieldNumber = 5;

		// Token: 0x04005644 RID: 22084
		private uint level_;

		// Token: 0x04005645 RID: 22085
		public const int AeonIdFieldNumber = 8;

		// Token: 0x04005646 RID: 22086
		private uint aeonId_;
	}
}
